package common.events
{
	import flash.events.Event;
	import flash.geom.Rectangle;

	public class RectangleEvent extends Event
	{
		public static const CHANGERECTANGLE : String = "changeRectangleEvent";
		public static const NORECTANGLE : String = "noRectangleEvent";
		
		[Bindable]
		public var rectangle : Rectangle = null;
		
		public static function createCustomRectangleEvent(type : String, rect : Rectangle) : RectangleEvent
		{
			var rectEvent : RectangleEvent = new RectangleEvent(type);
			rectEvent.rectangle = rect;
			
			return rectEvent;
		}
		
		public function RectangleEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
		}

	}
}